<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table>
		<tr>
			<td>栏目号(CID)</td>
			<td>栏目名称</td>
			<td>操作</td>
		</tr>
		{hd:section loop=$data name=c}
		<tr>
			<td>{hd:$data[c].cid}</td>
			<td>{hd:$data[c].catname}</td>
			<td>
				<a href="?m=admin&c=category&a=edit&cid={hd:$data[c].cid}">编辑</a> 
				<a href="?m=Admin&c=category&a=delete&cid={hd:$data[c].cid}" onclick="return confirm('该栏目文章也将被删除')">删除</a>
			</td>
		</tr>
		{hd:/section}
	</table>
	<style>
		table{
			margin: 100px auto;
			width: 800px;
			background:url({hd:$smarty.const.__VIEW__}/global/images/default/headerbg.png);
			color: #fff;
			text-align: center;
			border-radius: 5px;
			box-shadow: 2px 2px 2px #3D4E67;
		}
		a{
			color: #fff;
			text-decoration: none;
			margin-right: 5px;
			display: inline-block;
		}
		a:hover{
			text-decoration: underline;
		}
	</style>
</body>
</html>